package com.oscar.dao;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.oscar.dto.*;
import com.oscar.nail.WCFNail;

public class CalendarDAO {
	private WCFNail nailservice = new WCFNail();
	public CalendarDAO() {
	}
	public ArrayList<ItemInfo> getAllListItemInfo(final String nameStore)
	{
		ArrayList<ItemInfo> ds = nailservice.getAllListItemInfo(new ArrayList<String>(){{
			add(nameStore);
		}});
		return ds;
	}
	public ArrayList<ItemInfo> getListItemInfoByDay(final String date, final String nameStore)
	{
		ArrayList<ItemInfo> ds = nailservice.getListItemInfoByDay(new ArrayList<String>(){{
			add(date);
			add(nameStore);
		}});
		return ds;
	}
	 public boolean addItemInfoToCalendar(ItemInfo iteminfo, String namStore)
	 {
		 return nailservice.addItemInfoToCalendar(iteminfo, namStore);
	 }
     public boolean removeItemInfoFromCalendar(ItemInfo iteminfo, String nameStore)
     {
    	 return nailservice.removeItemInfoFromCalendar(iteminfo, nameStore);
     }
     public boolean updateItemInfoOfCalendar(ItemInfo arg0, ItemInfo arg1, String nameStore)
     {
    	 return nailservice.updateItemInfoOfCalendar(arg0, arg1, nameStore);
     }

}
